const glob = require('glob');

// 阻塞IO
var result = null;
console.time('blockGlob');
result = glob.sync(__dirname+"/**/*");
console.timeEnd('blockGlob');
// console.log(result);

// 非阻塞IO
console.time('unblockGlob');
glob(__dirname + '/**/*', (err, res) => {
    // console.log(res);
    console.log('unblockGlob is over');

})
console.timeEnd('unblockGlob');
console.log('Im here.');